require 'grape'

class HelloRuby  < Grape::APi
  get 'hello' do
    {message:"Hello #{params[:name]} via GET"}
  end

  post 'hello' do
    {message:"Hello #{params[:name]} via POST"}
  end
end